package com.forekonw.demotest1102wan02;

public class Rect extends Shape {
    private int x;
    private int y;

    public int getArea(int x , int y){
        int sum = x*y;
        return sum;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public static void main(String[] args) {
        Rect rect = new Rect();
        int ar = rect.getArea(5,4);
        System.out.println(ar);
    }
}
